//
//  HMExpressionKeyBoard.swift
//  HMSlender
//
//  Created by 赵少朋赵少朋 on 2017/2/12.
//  Copyright © 2017年 ITheima. All rights reserved.
//

import UIKit

class HMExpressionKeyBoard: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    func setupUI() -> Void {
        
        backgroundColor = UIColor(patternImage: UIImage(named: "emoticon_keyboard_background")!)
        //键盘高度
        frame.size = CGSize(width: SCREENWIDTH, height: 216)
        
        
        addSubview(expressionBottomView)
        addSubview(expressionPageView)
        
        expressionBottomView.snp_makeConstraints { (make) in
            make.left.bottom.right.equalTo(self)
            make.height.equalTo(35)
        }
        expressionPageView.snp_makeConstraints { (make) in
            make.left.right.top.equalTo(self)
            make.bottom.equalTo(expressionBottomView.snp_top)
        }
        
    }
    // 表情视图
    fileprivate lazy var expressionPageView:HMExpressionPageView = HMExpressionPageView()
    
    //键盘底部emoji四按钮
    fileprivate lazy var expressionBottomView:HMExpressionBottomView = HMExpressionBottomView()
}
